package com.wsl.service.impl;

import com.wsl.bean.User;
import com.wsl.mapper.TestUserMapper;
import com.wsl.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 20:18 2017/10/31
 * @Modified by:
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    TestUserMapper testUserMapper;
    //@Cacheable(value = "wangshuliang",key="#id+'wsl'")
    @Override
    public User getByID(Long id) {
        return testUserMapper.getById(id);
    }
}